package com.levi.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.levi.pojo.Shipping;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @author shentong
 * @since 2022/4/5 11:54 AM
 */
@Data
@ApiModel("orderVo实体类")
public class OrderVo {

    @ApiModelProperty("订单号")
    private Long orderNo;

    @ApiModelProperty("用户ID")
    private Integer userId;

    @ApiModelProperty("收货地址id")
    private Integer shippingId;

    @ApiModelProperty("实际付款金额")
    private BigDecimal payment;

    @ApiModelProperty("付款方式")
    private Integer paymentType;

    @ApiModelProperty("运费，单位元")
    private Integer postage;

    @ApiModelProperty("订单状态:0-已取消-10-未付款，20-已付款，40-已发货，50-交易成功，60-交易关闭")
    private Integer status;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("发货时间")
    private Date sendTime;

    @ApiModelProperty("付款时间")
    private Date paymentTime;

    @ApiModelProperty("订单关闭时间")
    private Date closeTime;

    @ApiModelProperty("订单完成时间")
    private Date endTime;

    @ApiModelProperty("订单详情列表")
    private List<OrderItemVo> orderItemvoList;

    @ApiModelProperty("订单收货地址信息")
    private Shipping shippingVo;

}
